<%-- 
    Document   : usuario_buscar
    Created on : 14/06/2010, 11:58:23 AM
    Author     : rafael
--%>
<%@page import="java.util.*, pruebas.modelo.Usuario" %>
<html>
    <head>
        <title>Usuario Buscar</title>
    </head>
    <body>
        <form name="f1" action="UsuarioBuscarServlet" method="post">
            Nombre: <input type="text" name="nombre"/>
            <input type="submit" name="enviar" value="Buscar"/>
        </form>
        <table border="1">
            <tr>
                <th>Id</th><th>Nombre</th><th>Paterno</th><th>Email</th>
            </tr>
            <%
                        Collection<Usuario> c = (ArrayList<Usuario>) request.getAttribute("USUARIOS");
                        if (c != null) {
                            for (Usuario vo : c) {
                                out.println("<tr><td>" + vo.getIdUsuario() + "</td>");
                                //out.println("<td>" + vo.getNombres() + "</td>");
                                
                                out.println( "<td><input type=text' name='test1' value='" + vo.getNombres() + "'/></td>" );
                                out.println( "<td><input type=text' name='test1' value='" + vo.getPaterno() + "'/></td>" );
                                out.println( "<td><input type=text' name='test1' value='" + vo.getCorreo() + "'/></td>" );
                                //out.println("<td>" + vo.getPaterno() + "</td>");
                                //out.println("<td>" + vo.getCorreo() + "</td></tr>");
                                
                       
            %>
            <%--<input type="text" name="test2" value=" <%  vo.getCorreo();  %> " />--%>

            <td><input type="text" />

            
            <%
                out.println(" </tr>");
           }} %>
        </table>
    </body>
</html>

